From: Rui Matos Date: Wed, 2 Nov 2011 18:41:46 +0000 (+0000) Subject: messageTray: don't steal focus when popping under the pointer X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7343 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=779b18bf48462cf0114a018634294721ef78e131;p=gnome-shell.git messageTray: don't steal focus when popping under the pointer We must look for the actor under the pointer in the whole message tray and not just in the notification. This will avoid us to capture focus when a notification comes up with the pointer on the whole tray area. https://bugzilla.gnome.org/show_bug.cgi?id=661358 --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 44c1fe149..64c84aa4a 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1860,7 +1860,7 @@ MessageTray.prototype = { // automatically. Instead, the user is able to expand the notification by mousing away from it and then // mousing back in. Because this is an expected action, we set the boolean flag that indicates that a longer // timeout should be used before popping down the notification. - if (this._notificationBin.contains(actorAtShowNotificationPosition)) { + if (this.actor.contains(actorAtShowNotificationPosition)) { this._useLongerTrayLeftTimeout = true; return; }